-- GENERATED SPELL FOR [Wing Commander Vipore] --


function spell0_13439(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(16509,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13439', 15000, 1)
end

function spell1_13439(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13439', 557, 1)
end

function Sorts_13439(pUnit, Event)
local choix_sorts_13439 = math.random(0, 1)
if choix_sorts_13439 == 0 then
pUnit:RegisterEvent('spell0_13439', 1, 1)
end
if choix_sorts_13439 == 1 then
pUnit:RegisterEvent('spell1_13439', 1, 1)
end
end

function mob13439_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13439', math.random(1500, 3000), 1)
end

function mob13439_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13439_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13439_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13439, 1, 'mob13439_Action')
RegisterUnitEvent(13439, 2, 'mob13439_Leave')
RegisterUnitEvent(13439, 3, 'mob13439_Kill')
RegisterUnitEvent(13439, 4, 'mob13439_Die')
